<template>
	<view class="page-question">
		<u-navbar title="常见问题" back-icon-color="#000" :border-bottom="false"
		title-size="36" title-color="#000" title-bold></u-navbar> 
		<view class="content">
			<u-collapse>
				<u-collapse-item :title="item.title" v-for="(item, index) in questionList" :key="index">
					<u-parse :html="item.ncontent"></u-parse>
				</u-collapse-item>
			</u-collapse>
		</view>
	</view>
</template>

<script>
	import {commonGet} from '@/api/commonapi.js'
	export default {
		data() {
			return {
				questionList:[]
			}
		},
		onLoad() {
			this.getQuestion()
		},
		methods: {
			getQuestion(){
				let _this = this
				let query = {
					ak:_this.$store.state.token,
					cmd:"nFAQ_list",
					para:JSON.stringify({})
				}
				commonGet(query,({Data:{Data}})=>{
					_this.questionList = Data
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
.content{
	padding: 0 30rpx;
}
</style>
